package com.wang.controller.inner;

import com.wang.domain.UserProfile;
import com.wang.service.IUserProfileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wangyandong
 * @date 2020/1/31 22:28
 */
@RestController
@RequestMapping("/inner/user_profile/")
public class UserProfileController {

    @Autowired
    private IUserProfileService userProfileService;

    @GetMapping("/getById/{userId}")
    public UserProfile getById(@PathVariable("userId") Integer userId){
        return userProfileService.getById(userId);
    }
}
